package com.tanhua.dubbo.api;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.model.domain.UserInfo;
import com.itheima.model.mongo.Movement;
import com.itheima.model.vo.PageResult;

import java.util.List;
import java.util.Map;

public interface UserInfoApi {

    public void save(UserInfo userInfo);

    public void update(UserInfo userInfo);

    //根据id查询
    UserInfo findById(Long userId);

    /**
     * 批量查询用户详情
     *    返回值：Map<id,UserInfo>
     */
    Map<Long,UserInfo> findByIds(List<Long> userIds, UserInfo info);

    IPage findAll(Integer page, Integer pagesize);


    UserInfo selectById(Long userId);
}
